package com.landian.commons.jpa.hql;

import lombok.Getter;

import java.util.List;

/**
 * @author caojl
 * @create 2018/01/11
 **/
public class ListHqlContext {

    public static ListHqlContext newInstance(String hql){
        return newInstance(hql,null);
    }

    public static ListHqlContext newInstance(String hql, List<ParameterUnit> parameterUnitList){
        return new ListHqlContext(hql,parameterUnitList);
    }

    private ListHqlContext(String hql, List<ParameterUnit> parameterUnitList){
        this.hql = hql;
        this.parameterUnitList = parameterUnitList;
    }

    /**
     *
     */
    @Getter
    private String hql;

    /**
     *
     */
    @Getter
    private List<ParameterUnit> parameterUnitList;

}
